package hb.software.selectcourse.group;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseTreeEntity;
import hb.software.selectcourse.entity.SelectCourse;

@Entity
@Table(name = "T_GroupSelectCourse")
@NamedQueries({
		@NamedQuery(name = "GroupSelectCourse.getRoot", query = "select g from GroupSelectCourse g where g.parent is null") })
public class GroupSelectCourse extends BaseTreeEntity<GroupSelectCourse, Long>{

	/**
	 *
	 */
	private static final long serialVersionUID = 7655305341266914414L;
	@Column
	String code;
	@Column
	String name;
	@OneToMany
	List<SelectCourse> selectCourse;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<SelectCourse> getSelectCourse() {
		return selectCourse;
	}
	public void setSelectCourse(List<SelectCourse> selectCourse) {
		this.selectCourse = selectCourse;
	}


}
